{include file="public/top"}
<article class="page-container">
    <form class="form-horizontal" role="form" action="" method="post" enctype="multipart/form-data" >
    <input type="hidden" name="id" value="{$authRules.id}">
    <div class="row cl" style="padding-top:20px;margin-left:-40px;">
        <label for="username" class="form-label col-xs-4 col-sm-3"><span class="c-red">*</span>所属权限：</label>
        <div class="formControls col-xs-8 col-sm-9"> 
            <span class="select-box" style="width:150px;">
                <select name="pid" class="select" size="1" >
                    <option value="0">顶级权限</option>
                        {volist name="authRuleRes" id="authRule"}
                            <option {if condition="$authRules['pid'] eq $authRule['id']"} selected="selected" {/if} value="{$authRule.id}"><?php if($authRule['level']!=0){echo '|';} echo str_repeat('—', $authRule['level']*3)?>{$authRule.title}</option>
                        {/volist}
                </select>
            </span> 
        </div>
    </div>
    <div class="row cl" style="padding-top:20px;margin-left:-40px;">
        <label for="username" class="form-label col-xs-4 col-sm-3">
            <span class="c-red">*</span>权限名称：
        </label>
        <div class="formControls col-xs-8 col-sm-4">
            <input type="text" class="input-text" value="{$authRules.title}" placeholder="权限名称" id="title" name="title">
        </div>
    </div>
    
    <div class="row cl" style="padding-top:20px;margin-left:-40px;">
        <label for="group_id" class="form-label col-xs-4 col-sm-3" >控/方：</label>
        <div class="formControls col-xs-8 col-sm-4">
            <input type="txt" class="input-text" value="{$authRules.name}" autocomplete="off"  placeholder="控/方" id="name" name="name">
        </div>
    </div>
    <div class="row cl" style="padding-top:20px;margin-left:40px;">
        <div class="col-xs-8 col-sm-9 col-xs-offset-4 col-sm-offset-3">
            <input class="btn btn-primary radius" type="submit" value="&nbsp;&nbsp;提交&nbsp;&nbsp;">
        </div>
    </div>
    </form>
</article>

<!--请在下方写此页面业务相关的脚本-->
<script type="text/javascript" src="__ADMIN__/lib/jquery.validation/1.14.0/jquery.validate.js"></script> 
<script type="text/javascript" src="__ADMIN__/lib/jquery.validation/1.14.0/validate-methods.js"></script> 
<script type="text/javascript" src="__ADMIN__/lib/jquery.validation/1.14.0/messages_zh.js"></script>

<!--/请在上方写此页面业务相关的脚本-->
{include file="public/footer"}